package kr.co.medical.dao;

import java.sql.SQLException;
import java.util.List;

import kr.co.medical.dto.Notice;
import kr.co.medical.dto.RowNumDTO;

public interface NoticeDAO {

	// 게시물 개수
	public int getCount() throws ClassNotFoundException, SQLException;

	// 메인페이지 공지사항 최신글
	public List<Notice> mainNotice() throws ClassNotFoundException,
			SQLException;

	// 전체 게시물
	public List<Notice> getNotices(RowNumDTO rowNumDTO)
			throws ClassNotFoundException, SQLException;

	// 게시물 삭제
	public int delete(String notice_id) throws ClassNotFoundException,
			SQLException;

	// 게시물 수정
	public int update(Notice notice) throws ClassNotFoundException,
			SQLException;

	// 게시물 상세
	public Notice getNotice(String notice_id) throws ClassNotFoundException,
			SQLException;

	// 게시물 입력
	public int insert(Notice notice) throws ClassNotFoundException,
			SQLException;

}
